package com.youlai.boot.factory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.core.security.model.UserAuthCredentials;
import com.youlai.boot.factory.model.entity.FactoryMember;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.factory.model.query.FactoryMemberQuery;
import com.youlai.boot.factory.model.vo.FactoryMemberVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 服装厂员工信息Mapper接口
 *
 * @author youlaitech
 * @since 2025-09-28 21:51
 */
@Mapper
public interface FactoryMemberMapper extends BaseMapper<FactoryMember> {

    /**
     * 获取服装厂员工信息分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<FactoryMemberVO>} 服装厂员工信息分页列表
     */
    Page<FactoryMemberVO> getFactoryMemberPage(Page<FactoryMemberVO> page, FactoryMemberQuery queryParams);


    /**
     * 根据微信openid获取用户认证信息
     *
     * @param openid 微信openid
     * @return 认证信息
     */
    FactoryMember getAuthCredentialsByOpenId(String openid);

}
